﻿require.config({
    paths: {
        jquery: "./lib/jquery-1.8.0.min",
        template: "./lib/template",
        layer: "./lib/layer",
        implement:"./lib/implement",
        swiper:"./lib/swiper-3.4.2.min",
        config:"./lib/config",
    },
    shim: {
        jquery: {
            exports: "$"
        },
        layer: {
            deps: ['jquery'],
            exports: 'layer'
        },
        template: {
            deps: ['jquery'],
            exports: 'template'
        }
    },
    waitSeconds: 10
});

require(['jquery','router', 'template', 'layer','implement','swiper', 'config'], function($, router, template, layer,implement,swiper, config) {
    $.template = template;
     // 模块路由
    new router();
});